import {myRequest} from '../network/http.js'

 const baseUrl = 'customer/shoppingCart'
 
 
export function addShoppingCart (config) {  
	return myRequest({
		url:baseUrl+'/add',
		method:'post',
		data:config
	})
}

export function delShoppingCart (config) {  
	return myRequest({
		url:baseUrl+'/clean/'+config,
		method:'delete'
	})
}

export function shoppingCartList (config) {  
	return myRequest({
		url:baseUrl+'/list/'+config,
		method:'get'
	})
}

export function sub (config) {  
	return myRequest({
		url:baseUrl+'/sub',
		method:'post',
		data:config
	})
}